package cn.com.java.service;


import cn.com.java.core.HttpRes;
import cn.com.java.core.ResponseEntity;
import cn.com.java.model.SysUser;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface SysUserService extends IService<SysUser> {


    /**
     * 查询分页
     * @param page
     * @param sysRoleQueryWrapper
     * @return
     */
    List<SysUser> getPageAndRole(Page<SysUser> page, QueryWrapper<SysUser> sysRoleQueryWrapper);

    /**
     * 登录
     * @param sysUser
     * @return
     */
    HttpRes login(SysUser sysUser);

    SysUser getByUserName(String username);
}